package com.zsxb.crm.pojo;

import lombok.Data;

@Data
public class Series<T> {
    private String msg;
    private Integer code;
    private T data; //数据

    public static <T> Series<T> success(T object) {
        Series<T> result = new Series<T>();
        result.msg = "操作成功";
        result.code = 200;
        result.data = object;
        return result;
    }
}
